<template>
    <view class="container">
      <web-view :src="url"></web-view>
	</view>
</template>
<script>
import { getSignContent } from '../api/api';
import request from '../../common/request';
export default {
    data() {
        return {
            url:'',
            base:'',
            request:request
        }
    },
    methods: {
        clear(){
            this.car = '';
            this.weight = '';
        },
        // 返回
        cancel(){
            uni.navigateBack({ delta: 1 })
        },
    },
    onLoad(option){
        this.base = this.request.config.baseURL;
        console.log(option.id);
        if(option.id){
            getSignContent(option.id).then(res=>{
            console.log(this.base+res.data.data.contract.annex,'res.data');
            this.url = this.base+'/'+res.data.data.contract.annex
        })
        }
        
    }
   
   
}
</script>
<style lang="scss">

</style>